home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-02-23 | 5.0 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Feb 23 12:17:16 1994, modified Wed Feb 23 12:17:16 1994, creator Think C, type ASCII, 4044 bytes "TinyEdit.c" , at 0x104c 812 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 69 6e 79 45 64 | 69 74 2e 63 00 00 00 00 |..TinyEd|it.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 0f cc 00 | 00 03 2c a9 91 40 1c a9 |........|..,..@..|
|00000060| 91 40 1c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.@......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 38 00 00 |........|.....8..|
|00000080| 2f 2a 0d 20 2a 20 54 69 | 6e 79 45 64 69 74 20 2d |/*. * Ti|nyEdit -|
|00000090| 20 4d 69 6e 69 6d 61 6c | 20 54 72 61 6e 73 45 64 | Minimal| TransEd|
|000000a0| 69 74 20 44 65 6d 6f 6e | 73 74 72 61 74 69 6f 6e |it Demon|stration|
|000000b0| 2e 0d 20 2a 0d 20 2a 20 | 54 68 69 73 20 61 70 70 |.. *. * |This app|
|000000c0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 61 62 6f 75 |lication| is abou|
|000000d0| 74 20 74 68 65 20 73 6d | 61 6c 6c 65 73 74 20 74 |t the sm|allest t|
|000000e0| 68 61 74 20 63 61 6e 20 | 62 65 20 77 72 69 74 74 |hat can |be writt|
|000000f0| 65 6e 20 75 73 69 6e 67 | 20 54 72 61 6e 73 45 64 |en using| TransEd|
|00000100| 69 74 0d 20 2a 20 49 74 | 20 61 6c 6c 6f 77 73 20 |it. * It| allows |
|00000110| 66 6f 72 20 61 20 73 69 | 6e 67 6c 65 20 65 64 69 |for a si|ngle edi|
|00000120| 74 20 77 69 6e 64 6f 77 | 2c 20 63 72 65 61 74 65 |t window|, create|
|00000130| 64 20 65 69 74 68 65 72 | 20 62 6c 61 6e 6b 20 6f |d either| blank o|
|00000140| 72 20 77 69 74 68 20 63 | 6f 6e 74 65 6e 74 73 0d |r with c|ontents.|
|00000150| 20 2a 20 72 65 61 64 20 | 66 72 6f 6d 20 61 20 66 | * read |from a f|
|00000160| 69 6c 65 2e 20 20 49 74 | 20 61 6c 73 6f 20 70 72 |ile. It| also pr|
|00000170| 6f 76 69 64 65 73 20 74 | 68 65 20 73 74 61 6e 64 |ovides t|he stand|
|00000180| 61 72 64 20 65 64 69 74 | 20 6f 70 65 72 61 74 69 |ard edit| operati|
|00000190| 6f 6e 73 20 66 72 6f 6d | 20 74 68 65 0d 20 2a 20 |ons from| the. * |
|000001a0| 45 64 69 74 20 6d 65 6e | 75 2e 0d 20 2a 0d 20 2a |Edit men|u.. *. *|
|000001b0| 20 30 38 20 4e 6f 76 20 | 38 36 20 50 61 75 6c 20 | 08 Nov |86 Paul |
|000001c0| 44 75 42 6f 69 73 0d 20 | 2a 20 30 32 20 46 65 62 |DuBois. |* 02 Feb|
|000001d0| 20 38 39 20 56 65 72 73 | 69 6f 6e 20 31 2e 30 31 | 89 Vers|ion 1.01|
|000001e0| 0d 20 2a 20 2d 20 4d 6f | 64 69 66 69 65 64 20 74 |. * - Mo|dified t|
|000001f0| 6f 20 77 6f 72 6b 20 77 | 69 74 68 20 54 72 61 6e |o work w|ith Tran|
|00000200| 73 53 6b 65 6c 20 32 2e | 30 20 61 6e 64 20 54 72 |sSkel 2.|0 and Tr|
|00000210| 61 6e 73 45 64 69 74 20 | 32 2e 30 2e 20 32 2d 62 |ansEdit |2.0. 2-b|
|00000220| 79 74 65 20 61 6e 64 20 | 34 2d 62 79 74 65 0d 20 |yte and |4-byte. |
|00000230| 2a 20 69 6e 74 65 67 65 | 72 20 74 79 70 65 73 20 |* intege|r types |
|00000240| 61 72 65 20 74 79 70 65 | 64 65 66 27 65 64 20 74 |are type|def'ed t|
|00000250| 6f 20 49 6e 74 65 67 65 | 72 20 61 6e 64 20 4c 6f |o Intege|r and Lo|
|00000260| 6e 67 69 6e 74 20 74 6f | 20 65 61 73 65 20 70 6f |ngint to| ease po|
|00000270| 72 74 69 6e 67 2e 0d 20 | 2a 20 31 36 20 4a 75 6e |rting.. |* 16 Jun|
|00000280| 20 39 32 20 56 65 72 73 | 69 6f 6e 20 31 2e 30 32 | 92 Vers|ion 1.02|
|00000290| 0d 20 2a 20 2d 20 4d 6f | 64 69 66 69 65 64 20 66 |. * - Mo|dified f|
|000002a0| 6f 72 20 54 72 61 6e 73 | 45 64 69 74 20 33 2e 30 |or Trans|Edit 3.0|
|000002b0| 30 2e 0d 20 2a 20 30 36 | 20 4a 75 6e 20 39 33 20 |0.. * 06| Jun 93 |
|000002c0| 56 65 72 73 69 6f 6e 20 | 31 2e 30 33 0d 20 2a 20 |Version |1.03. * |
|000002d0| 2d 20 43 6f 6e 76 65 72 | 73 69 6f 6e 20 66 6f 72 |- Conver|sion for|
|000002e0| 20 54 48 49 4e 4b 20 43 | 20 36 2e 30 2e 0d 20 2a | THINK C| 6.0.. *|
|000002f0| 20 30 34 20 4a 61 6e 20 | 39 34 0d 20 2a 20 2d 20 | 04 Jan |94. * - |
|00000300| 55 6e 64 69 64 20 49 6e | 74 65 67 65 72 2f 4c 6f |Undid In|teger/Lo|
|00000310| 6e 67 49 6e 74 20 74 79 | 70 65 20 73 74 75 66 66 |ngInt ty|pe stuff|
|00000320| 20 62 61 63 6b 20 74 6f | 20 73 68 6f 72 74 2f 6c | back to| short/l|
|00000330| 6f 6e 67 2e 0d 20 2a 20 | 32 30 20 4a 61 6e 20 39 |ong.. * |20 Jan 9|
|00000340| 34 20 56 65 72 73 69 6f | 6e 20 31 2e 30 34 0d 20 |4 Versio|n 1.04. |
|00000350| 2a 20 2d 20 55 73 65 20 | 61 20 6d 65 6e 75 20 68 |* - Use |a menu h|
|00000360| 6f 6f 6b 20 70 72 6f 63 | 65 64 75 72 65 20 74 6f |ook proc|edure to|
|00000370| 20 73 65 74 20 6d 65 6e | 75 73 20 77 68 65 6e 20 | set men|us when |
|00000380| 61 20 6d 6f 75 73 65 20 | 63 6c 69 63 6b 20 6f 63 |a mouse |click oc|
|00000390| 63 75 72 73 20 69 6e 20 | 74 68 65 0d 20 2a 20 6d |curs in |the. * m|
|000003a0| 65 6e 75 20 62 61 72 2c | 20 72 61 74 68 65 72 20 |enu bar,| rather |
|000003b0| 74 68 61 6e 20 73 65 74 | 74 69 6e 67 20 74 68 65 |than set|ting the|
|000003c0| 6d 20 61 66 74 65 72 20 | 65 76 65 72 79 20 61 63 |m after |every ac|
|000003d0| 74 69 6f 6e 20 74 68 61 | 74 20 63 6f 75 6c 64 20 |tion tha|t could |
|000003e0| 63 68 61 6e 67 65 0d 20 | 2a 20 6d 65 6e 75 20 69 |change. |* menu i|
|000003f0| 74 65 6d 20 73 74 61 74 | 65 2e 20 20 54 68 69 73 |tem stat|e. This|
|00000400| 20 73 69 6d 70 6c 69 66 | 69 65 73 20 61 70 70 6c | simplif|ies appl|
|00000410| 69 63 61 74 69 6f 6e 20 | 6c 6f 67 69 63 20 73 6f |ication |logic so|
|00000420| 6d 65 77 68 61 74 2e 0d | 20 2a 20 32 31 20 4a 61 |mewhat..| * 21 Ja|
|00000430| 6e 20 39 34 0d 20 2a 20 | 2d 20 55 73 65 20 47 65 |n 94. * |- Use Ge|
|00000440| 74 4e 65 77 45 57 69 6e | 64 6f 77 28 29 20 72 61 |tNewEWin|dow() ra|
|00000450| 74 68 65 72 20 74 68 61 | 6e 20 4e 65 77 45 57 69 |ther tha|n NewEWi|
|00000460| 6e 64 6f 77 28 29 2e 0d | 20 2a 20 32 31 20 46 65 |ndow()..| * 21 Fe|
|00000470| 62 20 39 34 0d 20 2a 20 | 2d 20 55 70 64 61 74 65 |b 94. * |- Update|
|00000480| 64 20 66 6f 72 20 54 72 | 61 6e 73 53 6b 65 6c 20 |d for Tr|ansSkel |
|00000490| 33 2e 31 31 2c 20 54 72 | 61 6e 73 45 64 69 74 20 |3.11, Tr|ansEdit |
|000004a0| 33 2e 30 35 2e 0d 20 2a | 2f 0d 0d 23 20 69 6e 63 |3.05.. *|/..# inc|
|000004b0| 6c 75 64 65 09 22 54 72 | 61 6e 73 53 6b 65 6c 2e |lude."Tr|ansSkel.|
|000004c0| 68 22 0d 0d 23 20 69 6e | 63 6c 75 64 65 09 22 54 |h"..# in|clude."T|
|000004d0| 72 61 6e 73 45 64 69 74 | 2e 68 22 0d 0d 0d 23 20 |ransEdit|.h"...# |
|000004e0| 64 65 66 69 6e 65 09 61 | 62 6f 75 74 41 6c 72 74 |define.a|boutAlrt|
|000004f0| 09 31 30 30 30 09 2f 2a | 20 22 41 62 6f 75 74 2e |.1000./*| "About.|
|00000500| 2e 2e 22 20 61 6c 65 72 | 74 20 6e 75 6d 62 65 72 |.." aler|t number|
|00000510| 20 2a 2f 0d 23 20 64 65 | 66 69 6e 65 09 77 69 6e | */.# de|fine.win|
|00000520| 64 52 73 72 63 09 31 30 | 30 30 09 2f 2a 20 77 69 |dRsrc.10|00./* wi|
|00000530| 6e 64 6f 77 20 72 65 73 | 6f 75 72 63 65 20 6e 75 |ndow res|ource nu|
|00000540| 6d 62 65 72 20 2a 2f 0d | 0d 74 79 70 65 64 65 66 |mber */.|.typedef|
|00000550| 20 65 6e 75 6d 09 09 2f | 2a 20 46 69 6c 65 20 6d | enum../|* File m|
|00000560| 65 6e 75 20 69 74 65 6d | 20 6e 75 6d 62 65 72 73 |enu item| numbers|
|00000570| 20 2a 2f 0d 7b 0d 09 6e | 65 77 57 69 6e 64 20 3d | */.{..n|ewWind =|
|00000580| 20 31 2c 09 09 2f 2a 20 | 62 65 67 69 6e 20 6e 65 | 1,../* |begin ne|
|00000590| 77 20 77 69 6e 64 6f 77 | 20 2a 2f 0d 09 6f 70 65 |w window| */..ope|
|000005a0| 6e 57 69 6e 64 2c 09 09 | 09 2f 2a 20 6f 70 65 6e |nWind,..|./* open|
|000005b0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 2a | existin|g file *|
|000005c0| 2f 0d 09 63 6c 6f 73 65 | 57 69 6e 64 2c 09 09 09 |/..close|Wind,...|
|000005d0| 2f 2a 20 63 6c 6f 73 65 | 20 77 69 6e 64 6f 77 20 |/* close| window |
|000005e0| 2a 2f 0d 09 2f 2a 20 2d | 2d 2d 20 2a 2f 0d 09 71 |*/../* -|-- */..q|
|000005f0| 75 69 74 41 70 70 20 3d | 20 35 0d 7d 3b 0d 0d 0d |uitApp =| 5.};...|
|00000600| 74 79 70 65 64 65 66 20 | 65 6e 75 6d 09 09 09 2f |typedef |enum.../|
|00000610| 2a 20 45 64 69 74 20 6d | 65 6e 75 20 69 74 65 6d |* Edit m|enu item|
|00000620| 20 6e 75 6d 62 65 72 73 | 20 2a 2f 0d 7b 0d 09 75 | numbers| */.{..u|
|00000630| 6e 64 6f 20 3d 20 31 2c | 0d 09 2f 2a 20 2d 2d 2d |ndo = 1,|../* ---|
|00000640| 20 2a 2f 0d 09 63 75 74 | 20 3d 20 33 2c 0d 09 63 | */..cut| = 3,..c|
|00000650| 6f 70 79 2c 0d 09 70 61 | 73 74 65 2c 0d 09 63 6c |opy,..pa|ste,..cl|
|00000660| 65 61 72 0d 7d 3b 0d 0d | 0d 73 74 61 74 69 63 20 |ear.};..|.static |
|00000670| 57 69 6e 64 6f 77 50 74 | 72 09 65 64 69 74 57 69 |WindowPt|r.editWi|
|00000680| 6e 64 20 3d 20 6e 69 6c | 3b 09 09 2f 2a 20 6e 6f |nd = nil|;../* no|
|00000690| 6e 2d 6e 69 6c 20 69 66 | 20 65 64 69 74 20 77 69 |n-nil if| edit wi|
|000006a0| 6e 64 6f 77 20 6f 70 65 | 6e 20 2a 2f 0d 73 74 61 |ndow ope|n */.sta|
|000006b0| 74 69 63 20 4d 65 6e 75 | 48 61 6e 64 6c 65 09 66 |tic Menu|Handle.f|
|000006c0| 69 6c 65 4d 65 6e 75 3b | 0d 73 74 61 74 69 63 20 |ileMenu;|.static |
|000006d0| 4d 65 6e 75 48 61 6e 64 | 6c 65 09 65 64 69 74 4d |MenuHand|le.editM|
|000006e0| 65 6e 75 3b 0d 0d 0d 73 | 74 61 74 69 63 20 70 61 |enu;...s|tatic pa|
|000006f0| 73 63 61 6c 20 76 6f 69 | 64 0d 43 6c 6f 73 65 20 |scal voi|d.Close |
|00000700| 28 76 6f 69 64 29 0d 7b | 0d 09 69 66 20 28 45 57 |(void).{|..if (EW|
|00000710| 69 6e 64 6f 77 43 6c 6f | 73 65 20 28 65 64 69 74 |indowClo|se (edit|
|00000720| 57 69 6e 64 29 29 0d 09 | 09 65 64 69 74 57 69 6e |Wind))..|.editWin|
|00000730| 64 20 3d 20 28 57 69 6e | 64 6f 77 50 74 72 29 20 |d = (Win|dowPtr) |
|00000740| 6e 69 6c 3b 0d 7d 0d 0d | 0d 2f 2a 0d 20 2a 20 48 |nil;.}..|./*. * H|
|00000750| 61 6e 64 6c 65 20 73 65 | 6c 65 63 74 69 6f 6e 20 |andle se|lection |
|00000760| 6f 66 20 41 62 6f 75 74 | 2e 2e 2e 20 69 74 65 6d |of About|... item|
|00000770| 20 66 72 6f 6d 20 41 70 | 70 6c 65 20 6d 65 6e 75 | from Ap|ple menu|
|00000780| 0d 20 2a 2f 0d 0d 73 74 | 61 74 69 63 20 70 61 73 |. */..st|atic pas|
|00000790| 63 61 6c 20 76 6f 69 64 | 0d 44 6f 41 70 70 6c 65 |cal void|.DoApple|
|000007a0| 4d 65 6e 75 20 28 73 68 | 6f 72 74 20 69 74 65 6d |Menu (sh|ort item|
|000007b0| 29 0d 7b 0d 09 28 76 6f | 69 64 29 20 53 6b 65 6c |).{..(vo|id) Skel|
|000007c0| 41 6c 65 72 74 20 28 61 | 62 6f 75 74 41 6c 72 74 |Alert (a|boutAlrt|
|000007d0| 2c 20 53 6b 65 6c 44 6c | 6f 67 46 69 6c 74 65 72 |, SkelDl|ogFilter|
|000007e0| 20 28 6e 69 6c 2c 20 74 | 72 75 65 29 2c 0d 09 09 | (nil, t|rue),...|
|000007f0| 09 09 09 09 09 09 09 09 | 09 73 6b 65 6c 50 6f 73 |........|.skelPos|
|00000800| 69 74 69 6f 6e 4f 6e 50 | 61 72 65 6e 74 44 65 76 |itionOnP|arentDev|
|00000810| 69 63 65 29 3b 0d 09 53 | 6b 65 6c 52 6d 76 65 44 |ice);..S|kelRmveD|
|00000820| 6c 6f 67 46 69 6c 74 65 | 72 20 28 29 3b 0d 7d 0d |logFilte|r ();.}.|
|00000830| 0d 0d 2f 2a 0d 20 2a 20 | 46 69 6c 65 20 6d 65 6e |../*. * |File men|
|00000840| 75 20 68 61 6e 64 6c 65 | 72 0d 20 2a 2f 0d 0d 73 |u handle|r. */..s|
|00000850| 74 61 74 69 63 20 70 61 | 73 63 61 6c 20 76 6f 69 |tatic pa|scal voi|
|00000860| 64 0d 44 6f 46 69 6c 65 | 4d 65 6e 75 20 28 73 68 |d.DoFile|Menu (sh|
|00000870| 6f 72 74 20 69 74 65 6d | 29 0d 7b 0d 09 73 77 69 |ort item|).{..swi|
|00000880| 74 63 68 20 28 69 74 65 | 6d 29 0d 09 7b 0d 09 63 |tch (ite|m)..{..c|
|00000890| 61 73 65 20 6e 65 77 57 | 69 6e 64 3a 0d 09 09 65 |ase newW|ind:...e|
|000008a0| 64 69 74 57 69 6e 64 20 | 3d 20 47 65 74 4e 65 77 |ditWind |= GetNew|
|000008b0| 45 57 69 6e 64 6f 77 20 | 28 77 69 6e 64 52 73 72 |EWindow |(windRsr|
|000008c0| 63 2c 20 28 57 69 6e 64 | 6f 77 50 74 72 29 20 2d |c, (Wind|owPtr) -|
|000008d0| 31 4c 2c 20 66 61 6c 73 | 65 29 3b 0d 09 09 62 72 |1L, fals|e);...br|
|000008e0| 65 61 6b 3b 0d 09 63 61 | 73 65 20 6f 70 65 6e 57 |eak;..ca|se openW|
|000008f0| 69 6e 64 3a 0d 09 09 65 | 64 69 74 57 69 6e 64 20 |ind:...e|ditWind |
|00000900| 3d 20 47 65 74 4e 65 77 | 45 57 69 6e 64 6f 77 20 |= GetNew|EWindow |
|00000910| 28 77 69 6e 64 52 73 72 | 63 2c 20 28 57 69 6e 64 |(windRsr|c, (Wind|
|00000920| 6f 77 50 74 72 29 20 2d | 31 4c 2c 20 74 72 75 65 |owPtr) -|1L, true|
|00000930| 29 3b 0d 09 09 62 72 65 | 61 6b 3b 0d 09 63 61 73 |);...bre|ak;..cas|
|00000940| 65 20 63 6c 6f 73 65 57 | 69 6e 64 3a 0d 09 09 53 |e closeW|ind:...S|
|00000950| 6b 65 6c 43 6c 6f 73 65 | 20 28 46 72 6f 6e 74 57 |kelClose| (FrontW|
|00000960| 69 6e 64 6f 77 20 28 29 | 29 3b 0d 09 09 62 72 65 |indow ()|);...bre|
|00000970| 61 6b 3b 0d 09 63 61 73 | 65 20 71 75 69 74 41 70 |ak;..cas|e quitAp|
|00000980| 70 3a 0d 09 09 69 66 20 | 28 43 6c 6f 62 62 65 72 |p:...if |(Clobber|
|00000990| 45 57 69 6e 64 6f 77 73 | 20 28 29 20 3d 3d 20 74 |EWindows| () == t|
|000009a0| 72 75 65 29 0d 09 09 09 | 53 6b 65 6c 53 74 6f 70 |rue)....|SkelStop|
|000009b0| 45 76 65 6e 74 4c 6f 6f | 70 20 28 29 3b 0d 09 09 |EventLoo|p ();...|
|000009c0| 62 72 65 61 6b 3b 0d 09 | 7d 0d 7d 0d 0d 0d 2f 2a |break;..|}.}.../*|
|000009d0| 0d 20 2a 20 4d 65 6e 75 | 20 68 6f 6f 6b 2c 20 63 |. * Menu| hook, c|
|000009e0| 61 6c 6c 65 64 20 74 6f | 20 61 64 6a 75 73 74 20 |alled to| adjust |
|000009f0| 74 68 65 20 6d 65 6e 75 | 73 20 77 68 65 6e 20 61 |the menu|s when a|
|00000a00| 20 6d 6f 75 73 65 20 63 | 6c 69 63 6b 20 6f 63 63 | mouse c|lick occ|
|00000a10| 75 72 73 20 69 6e 0d 20 | 2a 20 74 68 65 20 6d 65 |urs in. |* the me|
|00000a20| 6e 75 20 62 61 72 2e 0d | 20 2a 0d 20 2a 20 53 65 |nu bar..| *. * Se|
|00000a30| 74 20 46 69 6c 65 2f 45 | 64 69 74 20 6d 65 6e 75 |t File/E|dit menu|
|00000a40| 20 69 74 65 6d 73 20 61 | 63 63 6f 72 64 69 6e 67 | items a|ccording|
|00000a50| 20 74 6f 20 74 79 70 65 | 20 6f 66 20 66 72 6f 6e | to type| of fron|
|00000a60| 74 20 77 69 6e 64 6f 77 | 2e 0d 20 2a 0d 20 2a 20 |t window|.. *. * |
|00000a70| 54 68 65 20 67 65 6e 65 | 72 61 6c 20 62 65 68 61 |The gene|ral beha|
|00000a80| 76 69 6f 72 20 69 73 3a | 0d 20 2a 0d 20 2a 20 4e |vior is:|. *. * N|
|00000a90| 65 77 20 61 6e 64 20 4f | 70 65 6e 20 65 6e 61 62 |ew and O|pen enab|
|00000aa0| 6c 65 64 20 69 66 20 61 | 6e 20 65 64 69 74 20 77 |led if a|n edit w|
|00000ab0| 69 6e 64 6f 77 20 69 73 | 20 6e 6f 74 20 6f 70 65 |indow is| not ope|
|00000ac0| 6e 2c 20 6f 74 68 65 72 | 77 69 73 65 20 74 68 65 |n, other|wise the|
|00000ad0| 79 0d 20 2a 20 61 72 65 | 20 64 69 73 61 62 6c 65 |y. * are| disable|
|00000ae0| 64 2e 0d 20 2a 0d 20 2a | 20 43 6c 6f 73 65 20 65 |d.. *. *| Close e|
|00000af0| 6e 61 62 6c 65 64 20 77 | 68 65 6e 20 61 6e 20 65 |nabled w|hen an e|
|00000b00| 64 69 74 20 6f 72 20 44 | 41 20 77 69 6e 64 6f 77 |dit or D|A window|
|00000b10| 20 69 73 20 69 6e 20 66 | 72 6f 6e 74 20 28 69 2e | is in f|ront (i.|
|00000b20| 65 2e 2c 0d 20 2a 20 77 | 68 65 6e 20 74 68 65 72 |e.,. * w|hen ther|
|00000b30| 65 27 73 20 61 20 77 69 | 6e 64 6f 77 20 61 74 20 |e's a wi|ndow at |
|00000b40| 61 6c 6c 29 2e 0d 20 2a | 0d 20 2a 20 55 6e 64 6f |all).. *|. * Undo|
|00000b50| 20 64 69 73 61 62 6c 65 | 64 20 77 68 65 6e 20 74 | disable|d when t|
|00000b60| 68 65 20 65 64 69 74 20 | 77 69 6e 64 6f 77 20 69 |he edit |window i|
|00000b70| 73 20 69 6e 20 66 72 6f | 6e 74 2e 0d 20 2a 2f 0d |s in fro|nt.. */.|
|00000b80| 0d 73 74 61 74 69 63 20 | 70 61 73 63 61 6c 20 76 |.static |pascal v|
|00000b90| 6f 69 64 0d 41 64 6a 75 | 73 74 4d 65 6e 75 73 20 |oid.Adju|stMenus |
|00000ba0| 28 76 6f 69 64 29 0d 7b | 0d 09 44 69 73 61 62 6c |(void).{|..Disabl|
|00000bb0| 65 49 74 65 6d 20 28 66 | 69 6c 65 4d 65 6e 75 2c |eItem (f|ileMenu,|
|00000bc0| 20 63 6c 6f 73 65 57 69 | 6e 64 29 3b 09 2f 2a 20 | closeWi|nd);./* |
|00000bd0| 61 73 73 75 6d 65 20 6e | 6f 20 77 69 6e 64 6f 77 |assume n|o window|
|00000be0| 20 61 74 20 61 6c 6c 20 | 2a 2f 0d 09 45 6e 61 62 | at all |*/..Enab|
|00000bf0| 6c 65 49 74 65 6d 20 28 | 65 64 69 74 4d 65 6e 75 |leItem (|editMenu|
|00000c00| 2c 20 75 6e 64 6f 29 3b | 0d 0d 09 69 66 20 28 46 |, undo);|...if (F|
|00000c10| 72 6f 6e 74 57 69 6e 64 | 6f 77 20 28 29 20 21 3d |rontWind|ow () !=|
|00000c20| 20 6e 69 6c 29 0d 09 7b | 0d 09 09 45 6e 61 62 6c | nil)..{|...Enabl|
|00000c30| 65 49 74 65 6d 20 28 66 | 69 6c 65 4d 65 6e 75 2c |eItem (f|ileMenu,|
|00000c40| 20 63 6c 6f 73 65 57 69 | 6e 64 29 3b 0d 09 09 69 | closeWi|nd);...i|
|00000c50| 66 20 28 49 73 45 57 69 | 6e 64 6f 77 20 28 46 72 |f (IsEWi|ndow (Fr|
|00000c60| 6f 6e 74 57 69 6e 64 6f | 77 20 28 29 29 29 09 2f |ontWindo|w ()))./|
|00000c70| 2a 20 74 68 65 20 65 64 | 69 74 20 77 69 6e 64 6f |* the ed|it windo|
|00000c80| 77 27 73 20 69 6e 20 66 | 72 6f 6e 74 20 2a 2f 0d |w's in f|ront */.|
|00000c90| 09 09 09 44 69 73 61 62 | 6c 65 49 74 65 6d 20 28 |...Disab|leItem (|
|00000ca0| 65 64 69 74 4d 65 6e 75 | 2c 20 75 6e 64 6f 29 3b |editMenu|, undo);|
|00000cb0| 0d 09 7d 0d 0d 09 69 66 | 20 28 65 64 69 74 57 69 |..}...if| (editWi|
|00000cc0| 6e 64 20 3d 3d 20 6e 69 | 6c 29 0d 09 7b 0d 09 09 |nd == ni|l)..{...|
|00000cd0| 45 6e 61 62 6c 65 49 74 | 65 6d 20 28 66 69 6c 65 |EnableIt|em (file|
|00000ce0| 4d 65 6e 75 2c 20 6e 65 | 77 57 69 6e 64 29 3b 0d |Menu, ne|wWind);.|
|00000cf0| 09 09 45 6e 61 62 6c 65 | 49 74 65 6d 20 28 66 69 |..Enable|Item (fi|
|00000d00| 6c 65 4d 65 6e 75 2c 20 | 6f 70 65 6e 57 69 6e 64 |leMenu, |openWind|
|00000d10| 29 3b 0d 09 7d 0d 09 65 | 6c 73 65 0d 09 7b 0d 09 |);..}..e|lse..{..|
|00000d20| 09 44 69 73 61 62 6c 65 | 49 74 65 6d 20 28 66 69 |.Disable|Item (fi|
|00000d30| 6c 65 4d 65 6e 75 2c 20 | 6e 65 77 57 69 6e 64 29 |leMenu, |newWind)|
|00000d40| 3b 0d 09 09 44 69 73 61 | 62 6c 65 49 74 65 6d 20 |;...Disa|bleItem |
|00000d50| 28 66 69 6c 65 4d 65 6e | 75 2c 20 6f 70 65 6e 57 |(fileMen|u, openW|
|00000d60| 69 6e 64 29 3b 0d 09 7d | 0d 7d 0d 0d 0d 69 6e 74 |ind);..}|.}...int|
|00000d70| 0d 6d 61 69 6e 20 28 76 | 6f 69 64 29 0d 7b 0d 09 |.main (v|oid).{..|
|00000d80| 2f 2a 0d 09 20 2a 20 49 | 6e 69 74 69 61 6c 69 7a |/*.. * I|nitializ|
|00000d90| 65 20 54 72 61 6e 73 53 | 6b 65 6c 2c 20 63 72 65 |e TransS|kel, cre|
|00000da0| 61 74 65 20 6d 65 6e 75 | 73 20 61 6e 64 20 69 6e |ate menu|s and in|
|00000db0| 73 74 61 6c 6c 20 68 61 | 6e 64 6c 65 72 73 2e 0d |stall ha|ndlers..|
|00000dc0| 09 20 2a 2f 0d 0d 09 53 | 6b 65 6c 49 6e 69 74 20 |. */...S|kelInit |
|00000dd0| 28 28 53 6b 65 6c 49 6e | 69 74 50 61 72 61 6d 73 |((SkelIn|itParams|
|00000de0| 50 74 72 29 20 6e 69 6c | 29 3b 0d 0d 09 53 6b 65 |Ptr) nil|);...Ske|
|00000df0| 6c 41 70 70 6c 65 20 28 | 22 5c 70 41 62 6f 75 74 |lApple (|"\pAbout|
|00000e00| 20 54 69 6e 79 45 64 69 | 74 5c 33 31 31 22 2c 20 | TinyEdi|t\311", |
|00000e10| 44 6f 41 70 70 6c 65 4d | 65 6e 75 29 3b 09 2f 2a |DoAppleM|enu);./*|
|00000e20| 20 33 31 31 20 3d 20 65 | 6c 6c 69 70 73 69 73 20 | 311 = e|llipsis |
|00000e30| 2a 2f 0d 0d 09 66 69 6c | 65 4d 65 6e 75 20 3d 20 |*/...fil|eMenu = |
|00000e40| 4e 65 77 4d 65 6e 75 20 | 28 31 30 30 30 2c 20 22 |NewMenu |(1000, "|
|00000e50| 5c 70 46 69 6c 65 22 29 | 3b 0d 09 41 70 70 65 6e |\pFile")|;..Appen|
|00000e60| 64 4d 65 6e 75 20 28 66 | 69 6c 65 4d 65 6e 75 2c |dMenu (f|ileMenu,|
|00000e70| 20 22 5c 70 4e 65 77 2f | 4e 3b 4f 70 65 6e 5c 33 | "\pNew/|N;Open\3|
|00000e80| 31 31 2f 4f 3b 28 43 6c | 6f 73 65 2f 57 3b 28 2d |11/O;(Cl|ose/W;(-|
|00000e90| 3b 51 75 69 74 2f 51 22 | 29 3b 0d 09 28 76 6f 69 |;Quit/Q"|);..(voi|
|00000ea0| 64 29 20 53 6b 65 6c 4d | 65 6e 75 20 28 66 69 6c |d) SkelM|enu (fil|
|00000eb0| 65 4d 65 6e 75 2c 20 44 | 6f 46 69 6c 65 4d 65 6e |eMenu, D|oFileMen|
|00000ec0| 75 2c 20 6e 69 6c 2c 20 | 66 61 6c 73 65 2c 20 66 |u, nil, |false, f|
|00000ed0| 61 6c 73 65 29 3b 0d 0d | 09 65 64 69 74 4d 65 6e |alse);..|.editMen|
|00000ee0| 75 20 3d 20 4e 65 77 4d | 65 6e 75 20 28 31 30 30 |u = NewM|enu (100|
|00000ef0| 31 2c 20 22 5c 70 45 64 | 69 74 22 29 3b 0d 09 41 |1, "\pEd|it");..A|
|00000f00| 70 70 65 6e 64 4d 65 6e | 75 20 28 65 64 69 74 4d |ppendMen|u (editM|
|00000f10| 65 6e 75 2c 20 22 5c 70 | 55 6e 64 6f 2f 5a 3b 28 |enu, "\p|Undo/Z;(|
|00000f20| 2d 3b 43 75 74 2f 58 3b | 43 6f 70 79 2f 43 3b 50 |-;Cut/X;|Copy/C;P|
|00000f30| 61 73 74 65 2f 56 3b 43 | 6c 65 61 72 22 29 3b 0d |aste/V;C|lear");.|
|00000f40| 09 28 76 6f 69 64 29 20 | 53 6b 65 6c 4d 65 6e 75 |.(void) |SkelMenu|
|00000f50| 20 28 65 64 69 74 4d 65 | 6e 75 2c 20 45 57 69 6e | (editMe|nu, EWin|
|00000f60| 64 6f 77 45 64 69 74 4f | 70 2c 20 6e 69 6c 2c 20 |dowEditO|p, nil, |
|00000f70| 66 61 6c 73 65 2c 20 66 | 61 6c 73 65 29 3b 0d 0d |false, f|alse);..|
|00000f80| 09 44 72 61 77 4d 65 6e | 75 42 61 72 20 28 29 3b |.DrawMen|uBar ();|
|00000f90| 0d 09 53 6b 65 6c 53 65 | 74 4d 65 6e 75 48 6f 6f |..SkelSe|tMenuHoo|
|00000fa0| 6b 20 28 41 64 6a 75 73 | 74 4d 65 6e 75 73 29 3b |k (Adjus|tMenus);|
|00000fb0| 0d 0d 09 53 65 74 45 57 | 69 6e 64 6f 77 50 72 6f |...SetEW|indowPro|
|00000fc0| 63 73 20 28 6e 69 6c 2c | 20 6e 69 6c 2c 20 6e 69 |cs (nil,| nil, ni|
|00000fd0| 6c 2c 20 43 6c 6f 73 65 | 29 3b 0d 0d 09 2f 2a 0d |l, Close|);.../*.|
|00000fe0| 09 20 2a 20 50 72 6f 63 | 65 73 73 20 65 76 65 6e |. * Proc|ess even|
|00000ff0| 74 73 20 75 6e 74 69 6c | 20 75 73 65 72 20 71 75 |ts until| user qu|
|00001000| 69 74 73 2c 0d 09 20 2a | 20 74 68 65 6e 20 63 6c |its,.. *| then cl|
|00001010| 65 61 6e 20 75 70 20 61 | 6e 64 20 65 78 69 74 0d |ean up a|nd exit.|
|00001020| 09 20 2a 2f 0d 0d 09 53 | 6b 65 6c 45 76 65 6e 74 |. */...S|kelEvent|
|00001030| 4c 6f 6f 70 20 28 29 3b | 0d 09 53 6b 65 6c 43 6c |Loop ();|..SkelCl|
|00001040| 65 61 6e 75 70 20 28 29 | 3b 0d 7d 0d 00 00 00 00 |eanup ()|;.}.....|
|00001050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001080| 00 00 01 00 00 00 02 d2 | 00 00 01 d2 00 00 00 5a |........|.......Z|
|00001090| 00 08 2b 6e 00 10 00 0c | 2b 6e 00 14 00 10 60 28 |..+n....|+n....`(|
|000010a0| 2f 2e 00 08 4e ba f3 b8 | 28 40 20 0c 58 8f 67 18 |/...N...|(@ .X.g.|
|000010b0| 0a 54 69 6e 79 45 64 69 | 74 2e 63 00 02 00 00 00 |.TinyEdi|t.c.....|
|000010c0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|000010d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000010e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000010f0| 00 00 a9 9f 75 b1 00 00 | 00 00 00 00 03 2c 00 86 |....u...|.....,..|
|00001100| 2f 0c 4e ba fe dc 4a 00 | 58 8f 67 78 48 6e ff fc |/.N...J.|X.gxHn..|
|00001110| a8 74 2f 0c 4e ba f3 72 | 26 6d 00 2c 4e ba f7 08 |.t/.N..r|&m.,N...|
|00001120| 20 53 38 28 00 48 31 45 | 00 48 3e ae 00 12 2f 0b | S8(.H1E|.H>.../.|
|00001130| a9 df 3e 87 a8 87 3f 06 | a8 8a 48 6e ff f4 a8 8b |..>...?.|..Hn....|
|00001140| 30 2e ff f4 d0 6e ff f6 | d0 6e ff fa 20 53 31 40 |0....n..|.n.. S1@|
|00001150| 00 18 20 53 31 6e ff f4 | 00 1a 20 53 31 47 00 4a |.. S1n..|.. S1G.J|
|00001160| 20 53 31 46 00 50 4a 44 | 6c 08 4a 45 6c 04 70 00 | S1F.PJD|l.JEl.p.|
|00001170| 60 02 70 01 1f 00 1f 3c | 00 01 4e ba f8 22 2e ae |`.p....<|..N.."..|
|00001180| 00 00 01 52 00 3c 00 23 | 02 1c 01 28 00 18 00 00 |...R.<.#|...(....|
|00001190| 01 96 00 00 01 9d 00 00 | 00 00 00 04 00 09 00 00 |........|........|
|000011a0| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|000011b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011e0| 04 00 00 03 00 00 00 48 | 00 48 00 00 00 00 03 00 |.......H|.H......|
|000011f0| 02 4c ff f4 ff f4 03 0c | 02 58 03 47 05 28 03 fc |.L......|.X.G.(..|
|00001200| 00 02 00 00 00 48 00 48 | 00 00 00 00 03 00 02 4c |.....H.H|.......L|
|00001210| 00 01 00 00 00 64 00 00 | 00 01 00 03 03 03 00 00 |.....d..|........|
|00001220| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........|
|00001230| 00 00 00 00 68 08 00 19 | 01 90 00 00 00 00 00 00 |....h...|........|
|00001240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001250| 00 00 00 00 00 00 00 00 | 00 00 00 04 00 09 00 00 |........|........|
|00001260| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00001270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012a0| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000012d0| 00 00 00 00 00 00 00 00 | 00 08 00 38 00 14 00 f1 |........|...8....|
|000012e0| 02 1b 00 00 00 6c 00 06 | 00 00 0b 14 00 00 0b 1f |.....l..|........|
|000012f0| 0b 41 64 6a 75 73 74 4d | 65 6e 75 73 00 00 06 7a |.AdjustM|enus...z|
|00001300| 00 00 06 7f 05 43 6c 6f | 73 65 00 00 07 19 00 00 |.....Clo|se......|
|00001310| 07 24 0b 44 6f 41 70 70 | 6c 65 4d 65 6e 75 00 00 |.$.DoApp|leMenu..|
|00001320| 07 e2 00 00 07 ec 0b 44 | 6f 46 69 6c 65 4d 65 6e |.......D|oFileMen|
|00001330| 75 00 00 00 06 c7 00 00 | 06 c7 09 4d 61 6b 65 57 |u.......|...MakeW|
|00001340| 69 6e 64 00 00 00 0c f1 | 00 00 0c f5 05 6d 61 69 |ind.....|.....mai|
|00001350| 6e 00 00 00 01 00 00 00 | 02 d2 00 00 01 d2 00 00 |n.......|........|
|00001360| 00 5a 00 4c c0 4c 0a 4a | 00 00 00 1c 00 5a 00 02 |.Z.L.L.J|.....Z..|
|00001370| 42 42 53 52 00 00 00 1a | 52 45 43 54 00 00 00 26 |BBSR....|RECT...&|
|00001380| 4d 50 53 52 00 00 00 32 | 01 03 ff ff 00 00 00 00 |MPSR...2|........|
|00001390| 00 00 00 00 00 00 ff ff | 00 00 01 56 00 00 00 00 |........|...V....|
|000013a0| 03 ef ff ff 00 00 01 62 | 00 00 00 00 00 00 00 00 |.......b|........|
|000013b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+